<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        table {
            border: 2px solid red;
            border-collapse: collapse;

        }

        td {
            border: 2px solid red;
            width: 100px;
            height: 80px;
            text-align: center;
            vertical-align: top;
            background-color: yellow;
            color: green;
            padding: 20px;

        }
    </style>
</head>

<body>
    <table>
        <tr>
            <td>单元格1</td>
            <td>单元格2</td>
            <td>单元格3</td>
        </tr>
        <tr>
            <td>单元格4</td>
            <td>单元格5</td>
            <td>单元格6</td>
        </tr>
        <tr>
            <td>单元格7</td>
            <td>单元格8</td>
            <td>单元格9</td>
        </tr>
    </table>
</body>

</html>